package cn.kbyue.cloudkafka.kafkaclient;

import lombok.extern.slf4j.Slf4j;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

/**
 * @author xlang
 * @version 0.0.1
 * @desciption
 * @date 2020/8/27 18:42
 */
@Component
@Slf4j
public class KafkaConsumer {

    @KafkaListener(topics = "topic-test", groupId = "cloud-demo-kafka")
    public void consume(String message) {
        log.info("## consume message: {}", message);
    }

}
